וַיְהִ֣י ׀ בְּדַבְּר֣וֹ אֵלָ֗יו וַיֹּ֤אמֶר לוֹ֙ הַלְיוֹעֵ֤ץ לַמֶּ֙לֶךְ֙ נְתַנּ֔וּךָ חֲדַל־לְךָ֖ לָ֣מָּה יַכּ֑וּךָ וַיֶּחְדַּ֣ל הַנָּבִ֗יא וַיֹּ֙אמֶר֙ יָדַ֗עְתִּי כִּֽי־יָעַ֤ץ אֱלֹהִים֙ לְהַשְׁחִיתֶ֔ךָ כִּֽי־עָשִׂ֣יתָ זֹּ֔את וְלֹ֥א שָׁמַ֖עְתָּ לַעֲצָתִֽי׃ (פ)
און עס איז געװען, אַז ער האָט גערעדט צו אים, האָט [דער מלך] צו אים געזאָגט: האָבן מיר דיך פֿאַר דעם יועץ פֿון מלך געמאַכט? הער דיר אױף; נאָך װאָס זאָל מען דיך שלאָגן? האָט דער נבֿיא אױפֿֿגעהערט, און ער האָט געזאָגט: איך װײַס אַז גאָט האָט באַראָטן דיך אומצוברענגען, װײַל דו האָסט דאָס געטאָן, און האָסט ניט צוגעהערט צו מײַן עצה.
Rashi
that God has given counsel to destroy you i.e., If you do not hearken to My advice to follow the straight path, you should know, O king, that the Lord has given counsel to destroy you because you have done this, and have not hearkened to the counsel. Now what is the counsel? That he enticed you to provoke the king of Israel and to fall before him, as it is written: “And Amaziah the king of Judah took counsel, and he sent to Joash, etc.”